package spring.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;

/**
 * @author 吴阳基
 * @datetime 2024/1/11 8:59
 */
public class AfterLogger {
    private static final Logger logger = Logger.getLogger(AfterLogger.class);

    @After("execution(* spring.service.UserService(..))")
    public void afterLogger(JoinPoint jp) {
        logger.info(jp.getSignature().getName() + "方法结束执行。");
    }
}
